﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Work8
{
    class Nestedclass   
    {
        public class Inner         //Inner为嵌套类
        {
            public string CardId { get; set; }
            public string Password { get; set; }
            public static int Price { get; set; }

            public void PrintMsg()
            {
                Console.WriteLine("卡号为:{0}  密码为:{1}",CardId,Password);
            }

            public static void OutPrice(int price)
            {
                Price = price;
                Console.WriteLine("价格为:" + Price);
            }


        }
    }
}
